<%@ page pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="${ctx}/css/main.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
	<script language="javascript">
		function submitAction(actionName){
			document.exportForm.action = actionName ;
			document.exportForm.submit();
		}
		
		function init() {
			document.getElementById("userName").value = '';
			document.getElementById("sex").value = '';
			document.getElementById("signTimeFrom").value = '';
			document.getElementById("signTimeTo").value = '';
		}
	</script>
	
	<body>
		<form method="post" action="" name="exportForm">
			<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
				<tr>
					<td width="20%" class="td2"> 
						用户名
					</td>
					<td width="30%" class="td2">
						<input type="text" name="userName" size="32" value="${userExport.userName}">
					</td>
					<td width="20%" class="td2"> 
						性别
					</td>
					<td width="30%" class="td2">
						<c:if test="${userExport.sex == 1}">
							<input type="radio" name="sex" size="15" value="1" checked="true">男
							&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="sex" size="15" value="0">女
						</c:if>
						<c:if test="${userExport.sex == 0}">
							<input type="radio" name="sex" size="15" value="1">男
							&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="sex" size="15" value="0" checked="true">女
						</c:if>
						<c:if test="${empty userExport.sex}">
							<input type="radio" name="sex" size="15" value="1">男
							&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="sex" size="15" value="0">女
						</c:if>
					</td>
				</tr>
				<tr>
					<td width="20%" class="td2">
						注册时间（起）
					</td>
					<td width="30%" class="td2">
						<input size="28" readonly="readonly" id="signTimeFrom" type="text" name="signTimeFrom" value="${userExport.signTimeFrom}"/>
						<img onclick="WdatePicker({el:'signTimeFrom'})" src="${ctx}/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">
					</td>
					<td width="20%" class="td2">
						注册时间（止）
					</td>
					<td width="30%" class="td2">
						<input size="28" readonly="readonly" id="signTimeTo" type="text" name="signTimeTo" value="${userExport.signTimeTo}"/>
						<img onclick="WdatePicker({el:'signTimeTo'})" src="${ctx}/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">
					</td>
				</tr>
				<tr>
					<td class="td11" align="left" colspan="4">
						<input type="button" name="search" value="查询" onClick="submitAction('userInfoExportSearch.ac');">
						&nbsp;&nbsp;<input type="button" name="export" value="导出Excel" onClick="submitAction('userInfoToExcel.ac');">
						&nbsp;&nbsp;<input type="button" name="reset" value="重置" onClick="init();">
					</td>
				</tr>
			</table>
			<BR>
			<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
				<tr>
					<td width="15%" class="td1" align="center">
						用户名
					</td>
					<td width="25%" class="td1" align="center">
						电子邮箱
					</td>
					<td width="15%" class="td1" align="center">
						手机号码
					</td>
					<td width="15%" class="td1" align="center">
						固定电话
					</td>
					<td width="10%" class="td1" align="center">
						性别
					</td>
					<td width="20%" class="td1" align="center">
						注册日期
					</td>
				</tr>
				<c:forEach var="userInfo" items="${userExportList}">
					<tr>
						<td class="td2">
							${userInfo.userName}
						</td>
						<td class="td2">
							${userInfo.email}
						</td>
						<td class="td2">
							${userInfo.mobileNo}
						</td>
						<td class="td2">
							${userInfo.telNo}
						</td>
						<td class="td2" align="center">
							${userInfo.sex}
						</td>
						<td class="td2" align="center">
							${userInfo.signTime}
						</td>
					</tr>
				</c:forEach>
			</table>
		</form>
	</body>
</html>